from django.db import models


# Create your models here.
###定义数据库表,存放数据库表定义

class Customers(models.Model):
    # 客户名称
    name = models.CharField(max_length=200)

    phonenumber = models.CharField(max_length=200)

    # 地址
    address = models.CharField(max_length=200)

    # qq
    qq = models.CharField(max_length=30, null=True, blank=True)
class Customer(models.Model):
    # 客户名称
    name = models.CharField(max_length=200)

    phonenumber = models.CharField(max_length=200)

    # 地址
    address = models.CharField(max_length=200)

    # qq
    qq = models.CharField(max_length=30, null=True, blank=True)


from django.contrib import admin
admin.site.register(Customers)
admin.site.register(Customer)
